package com.lxh.libmanager.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Book {
    private Integer id;
    private String name;
    private String author;
    private String publish;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date publishdate;

    private Integer page;
    private Double price;
    private String content;
}
